<!-- head -->
{include file='public/head' /}
<!-- head -->

<!-- left -->
{include file='public/left' /}
<!-- left -->

<div class="content-wrapper">
    <section class="content-header">
        <h1>
            图片库
            <small>项目图片</small>
        </h1>
        <ol class="breadcrumb">
            <li><a href="#"><i class="fa fa-dashboard"></i> 项目管理</a></li>
            <li class="active">图片库</li>
        </ol>
    </section>

    <section class="content">
        <div class="row">
            <div class="col-sm-12">
                <div class="box box-primary">
                    <div class="box-header with-border">
                        <h3 class="box-title">共计{$itemclass->total()}条记录</h3>
                        <div class="box-tools pull-right">
                            <button type="button" class="btn btn-sm bg-olive" data-url="{:url('admin/Item/addImgweb','','')}" onclick="ShowMessage(this)"><span class="fa fa-plus"></span> 添加</button>
                            <button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
                            <button type="button" class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button>
                        </div>
                    </div>
                    <div class="box-body">
                        {volist name="itemclass1" id="admin"}
                        <div class="row margin-bottom">
                            {volist name="admin" id="admin1"}
                            <div class="col-sm-3">
                                <img class="img-responsive" src="{:config('adminconfig.ImgPath')}/{$admin1.name}" alt="Photo">
                            </div>
                            {/volist}
                        </div>
                        {/volist}
                    </div>
                    <div class="box-footer clearfix" style="text-align: center">
                        {$itemclass->render()}
                    </div>
                </div>
            </div>
        </div>
    </section>
</div>
<script type="text/javascript">

    function ShowMessage(obj) {
        var url = $(obj).data('url');
        window.location.href = url;
    }
</script>
<!-- foot -->
{include file='public/foot' /}
<!-- foot -->